<template>
	<Form :label-width="90" label-position="right" style="margin-top:12px">
		<FormItem label="服务态度">
			<RadioGroup v-model="attitude">
				<Radio :label=0>不满意</Radio>
				<Radio :label=1>满意</Radio>
			</RadioGroup>
		</FormItem>
		<FormItem label="服务质量">
			<RadioGroup v-model="quality">
				<Radio :label=0>不满意</Radio>
				<Radio :label=1>满意</Radio>
			</RadioGroup>
		</FormItem>
		<FormItem label="及时性">
			<RadioGroup v-model="timeliness">
				<Radio :label=0>不满意</Radio>
				<Radio :label=1>满意</Radio>
			</RadioGroup>
		</FormItem>
	</Form>
</template>
<script lang="ts">
	import { Component, Vue } from "vue-property-decorator";
	import { Form, FormItem, Radio, RadioGroup } from "view-design";

	@Component({
		components: {
			Form,
			FormItem,
			Radio,
			RadioGroup
		}
	})
	export default class Evaluate extends Vue {
		attitude:0 | 1 = 1;
		quality:0 | 1 = 1;
		timeliness:0 | 1 = 1;

		getInfo (oid:string):any {
			return {
				opt: "dealevent",
				eid: this.$route.params.id,
				oid,
				attitude: this.attitude,
				quality: this.quality,
				speed: this.timeliness
			};
		}
	}
</script>
